package com.atguigu.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class Demo05ControllerView {

    @RequestMapping("/index.html")
    public String toIndexPage() {
        // 物理视图：/WEB-INF/views/page01portal.jsp
        // 抽取出来的前缀：/WEB-INF/views/
        // 抽取出来的后缀：.jsp
        // 逻辑视图：page01portal
        return "page01portal";
    }

    @RequestMapping("/test/view/target")
    public String toTargetPage() {
        return "page02target";
    }

}
